﻿<UserControl x:Class="Wpfконфигуратор.ВидПоля"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Wpfконфигуратор="clr-namespace:Wpfконфигуратор"
             mc:Ignorable="d" 
             d:DesignHeight="94" d:DesignWidth="422" VerticalContentAlignment="Top" HorizontalContentAlignment="Left">
    <UserControl.Resources>
    </UserControl.Resources>
    
            <!--<StackPanel Orientation="Horizontal"  >-->
    
    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10"  />
            <ColumnDefinition Width="Auto" SharedSizeGroup="К1" />
            <ColumnDefinition Width="10"  />
            <ColumnDefinition Width="Auto" SharedSizeGroup="К2"/>
            <ColumnDefinition Width="10"  />
            <ColumnDefinition Width="Auto" SharedSizeGroup="К4"/>
            <ColumnDefinition Width="10"  />
            <ColumnDefinition Width="Auto" SharedSizeGroup="К5"/>
        </Grid.ColumnDefinitions>
        <!--<TextBlock Text="{Binding Path= АтрибутыДоступа}" Margin="1,0" />-->
        	<!--<TextBlock Text="static"  Foreground="Blue" Margin=" 0,0,5,0" >
                                                        <TextBlock.Style>
                                                                <Style> 
                                                                    <Setter Property="TextBlock.Visibility" Value="Collapsed" />
                                                                    <Style.Triggers>
                                                                        <DataTrigger Binding="{Binding Path=F.IsStatic}" Value="true">
                                                                                <Setter Property="TextBlock.Visibility" Value="Visible" />
                                                                        </DataTrigger>
                                                                    </Style.Triggers>
                                                                </Style>
                                                            </TextBlock.Style>
                </TextBlock>-->
                <!--<TextBlock Text="{Binding Path=АтрибутФиксации}"  Foreground="Blue" Margin=" 0,0,5,0" >
                                                    <TextBlock.Style>
                                                        <Style> 
                                                            <Style.Triggers>
                                                                <DataTrigger Binding="{Binding Path=АтрибутФиксации}" Value="{x:Null}">
                                                                        <Setter Property="TextBlock.Visibility" Value="Collapsed" />
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </TextBlock.Style>
                </TextBlock>-->
            <!--Визуализатор Имени поля               -->
        <TextBlock Grid.Column="1" Text="{Binding Path=F.Name}" ToolTip="{Binding Path=Синтаксис}"  />
        
          <GridSplitter Background="Transparent" ShowsPreview="False"  HorizontalAlignment="Center"    Width="10" Grid.Column="2"  />

                <!--<TextBlock Text="{Binding Path= ИмяТипаОпределившегоПоле}" Margin=" 0,0,0,0" />
                <TextBlock Text="." />-->

            <!--<ContentControl Grid.Column="3" Content="{Binding }">
                <ContentControl.ContentTemplateSelector>
                    <Wpfконфигуратор:СелекторЗначения/>
                </ContentControl.ContentTemplateSelector>
           
        </ContentControl>
        <GridSplitter Background="Transparent" ShowsPreview="False"  HorizontalAlignment="Center"    Width="10" Grid.Column="4"  />-->
        
            <!--Визулизатор Типа-->
        <TextBlock DataContext="{Binding Path=ТипПеременной}"  Grid.Column="5" Text="{Binding Path=Имя}"   ToolTip="{Binding Path=Описание}" />
            
        <GridSplitter Background="Transparent" ShowsPreview="False"  HorizontalAlignment="Center"    Width="10" Grid.Column="6"  />

        <Wpfконфигуратор:ВидПеременной Grid.Column="7"  Content="{Binding  Path=ВизуализаторЗначения}" />
            <!--Если в Ресурсы добавить нужные словари, то  можно менять вид визуализаторы          -->

        </Grid>

    <!--</StackPanel>-->
         
</UserControl>
